home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 600 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  2.0 KB

  1. Path: cs.mu.OZ.AU!bounce-back
  2. From: davidb@datalytics.com (David Bradley)
  3. Newsgroups: comp.std.c++
  4. Subject: Re: Calling X(int) from X()'s init list
  5. Date: 01 Mar 96 12:28:05 GMT
  6. Organization: Datalytics Inc.
  7. Approved: fjh@cs.mu.oz.au
  8. Message-ID: <3135b551.1285177@news.datalytics.com>
  9. References: <4gsa2r$gjm@sdaw04.seinf.abb.se> <4gsmnm$3aq@engnews1.Eng.Sun.COM>
  10. NNTP-Posting-Host: munta.cs.mu.oz.au
  11. X-Original-Date: Thu, 29 Feb 1996 14:21:21 GMT
  12. X-Newsreader: Forte Agent .99d/32.182
  13. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  14.     iQBFAgUBMTb7DOEDnX0m9pzZAQFprgF9GSa6+0Fawj7+v8T/Tqdkys7AgRzr/W5f
  15.     u6VHCWofgODs2YWlb7/P0jaYkfqC3LpX
  16.     =glkn
  17. Originator: fjh@munta.cs.mu.OZ.AU
  18.  
  19. clamage@Eng.Sun.COM (Steve Clamage) wrote:
  20.  
  21. >I think the original question is really about a way to break out
  22. >a member-init-list into a common bit of code somehow, which cannot
  23. >currently be done. It seems to me it is (only) a convenience and ease-of-
  24. >maintenance issue.
  25.  
  26. Deja vue.  I believe this discussion went around 4 or 6 years ago on
  27. BIX.  Unfotunately I don't remember the reason for rejecting it.
  28. Seems like some logistics of handling a constructor on something that
  29. may already be partially constructed.  Basically who calls the default
  30. constructors if neither invoked constructor or the called constructor
  31. constructs it.  The compiler either has to realize this and only
  32. construct it once or it will get constructed twice.
  33.  
  34. The bottom line was it was hashed around quite a bit, as it looks nice
  35. on the outside, but presents some real problems in implementation.
  36.  
  37. ===============================================
  38. DISCLAIMER: I may be a member of humanity,
  39. but I'm not a spokesman for humanity.
  40.     davidb@datalytics.com
  41. ---
  42. [ To submit articles: try just posting with your news-reader.
  43.                       If that fails, use mailto:std-c++@ncar.ucar.edu
  44.   FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html
  45.   Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html
  46.   Comments? mailto:std-c++-request@ncar.ucar.edu.
  47. ]
  48.